package com.linhai.scm.entity.base;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.linhai.scm.entity.base.BaseBean;

/**
 * 用户表
 * @author linhai
 *
 */
@Entity//表示为实体类
@Table(name="TB_User")//表名注解
public class User extends BaseBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String userName;
	private String userPwd;
	
	/**
	 * 获取用户名
	 * @return
	 */
	@Column(name = "userName")// 类属性对应着表字段
	public String getUserName() {
		return userName;
	}
	
	/**
	 * 获取用户密码
	 * @return
	 */
	@Column(name = "userPwd")// 类属性对应着表字段
	public String getUserPwd() {
		return userPwd;
	}
	
	/**
	 * 设置用户名
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * 设置用户密码
	 * @param userPwd
	 */
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
}
